import turtle
a=100
b='red'
c='blue'
p=turtle.Pen()
p.forward(a)
p.left(90)
p.forward(a)
p.color(c)
p.forward(a)

turtle.mainloop()
